<?php
include 'dbinfo.inc.php';

$con = mysql_connect($hostname, $username, $password);
if (!$con) {
  die('Error - Could not connect: '.mysql_error()).'<br />';
}
@mysql_select_db($database,$con) or die('Error - Could not select '.$database.' '.mysql_error());
?>